import httpInstance from "@/utils/http"
// 封装所有和用户相关的接口函数
export const loginApi = ({ account, password}) => {
  return httpInstance({
    url: '/login',
    method: 'post',
    data: {
      account,
      password
    }
  })
}

// 获取猜你喜欢数据
export const getLikeListAPI = ({ limit = 4 }) => {
  return httpInstance({
    url:'/goods/relevant',
    params: {
      limit 
    }
  })
}